package com.hjt.gulimall.auth.feign;

import com.hjt.common.utils.R;
import com.hjt.gulimall.auth.vo.UserLoginVo;
import com.hjt.gulimall.auth.vo.UserRegisterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author:97007
 * @date:2021/9/28 21:58
 */
@FeignClient(value = "gulimall-member")
public interface MemberFeignService {

    @PostMapping("/member/member/register")
    R register(@RequestBody UserRegisterVo registerVo);

    @PostMapping("/member/member/login")
    R login(@RequestBody UserLoginVo loginVo);
}
